ChannelListComponent

open class ChannelListComponent

This class creates and performs a view corresponding the channel list area in Sendbird UIKit. since 3.0.0

Constructors

Link copied to clipboard
open fun ChannelListComponent()
Constructor since 3.0.

Types

Link copied to clipboard
open class Params
A collection of parameters, which can be applied to a default View.

Functions

Link copied to clipboard
open fun getRootView(): View
Returns the view created by onCreateView.
Link copied to clipboard
open fun notifyDataSetChanged(@NonNull channelList: List<GroupChannel>)
Called when the channel list is changed.
Link copied to clipboard
open fun onCreateView(    @NonNull context: Context,     @NonNull inflater: LayoutInflater,     @NonNull parent: ViewGroup,     @Nullable args: Bundle): View
Called after the component was created to make views.
Link copied to clipboard
protected open fun onItemClicked(    @NonNull view: View,     position: Int,     @NonNull channel: GroupChannel)
Called when the item of the channel list is clicked.
Link copied to clipboard
protected open fun onItemLongClicked(    @NonNull view: View,     position: Int,     @NonNull channel: GroupChannel)
Called when the item of the channel list is long-clicked.
Link copied to clipboard
open fun <T : ChannelListAdapter?> setAdapter(@NonNull adapter: T)
Sets the channel list adapter to provide child views on demand.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable listener: OnItemClickListener<GroupChannel>)
Register a callback to be invoked when the item of the channel is clicked.
Link copied to clipboard
open fun setOnItemLongClickListener(@Nullable listener: OnItemLongClickListener<GroupChannel>)
Register a callback to be invoked when the item of the channel is long-clicked.
Link copied to clipboard
open fun setPagedDataLoader(@NonNull pagedDataLoader: OnPagedDataLoader<List<GroupChannel>>)
Sets the paged data loader for channel list.

Properties

Link copied to clipboard
open val adapter: ChannelListAdapter
Link copied to clipboard
val params: ChannelListComponent.Params